package com.df.bpm.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.df.bpm.entity.Role;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@TableName("bpm.dtoDepartmentRole")
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class DtoDepartmentRole extends Role {


	private String dpmNameCn;//varchar

	private Integer id;//int

	private String name;//varchar

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@TableField(fill = FieldFill.INSERT)
	private Date createDate;//datetime

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@TableField(fill = FieldFill.INSERT)
	private Date updateDate;//datetime

	private String createUser;//varchar

	private String updateUser;//varchar


}